#include<iostream>
#include<string>
using namespace std;
int main()
{
    string str = "D:\hello\world\test.text";
    cout << str << endl;
    string str1 = "D:\\hello\\world\\test.text";
    cout << str1 << endl;
    string str2 = R"(D:\hello\world\test.text)";
    cout << str2 << endl;

    {
        string str1 = R"(D:\hello\world\test.text)";
        cout << str1 << endl;
        string str2 = R"luffy(D:\hello\world\test.text)luffy";
        cout << str2 << endl;

        //string str3 = R"luffy(D:\hello\world\test.text)robin";	// 语法错误，编译不通过
        //cout << str3 << endl;
    }
    return 0;
}


/* 作者: 苏丙榅
链接: https://subingwen.cn/cpp/R/
来源: 爱编程的大丙
著作权归作者所有。商业转载请联系作者获得授权，非商业转载请注明出处。 */